package com.qf.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("medical_records")
@ApiModel(description = "用户健康信息表")
public class MedicalRecords extends Model<MedicalRecords> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name="id", value="文章id")
    private Integer id;

    @ApiModelProperty(name="monitorId", value="健康状态id")
    private Integer monitorId;

    @ApiModelProperty(name="allergy", value="过敏史")
    private String allergy;

    @ApiModelProperty(name="allergyDetails", value="过敏药物具体信息")
    private String allergyDetails;

    @ApiModelProperty(name="pastMedical", value="既往史")
    private String pastMedical;

    @ApiModelProperty(name="illnessDate", value="患病时间")
    private Date illnessDate;

    @ApiModelProperty(name="illnessName", value="疾病名称或症状")
    private String illnessName;

    @ApiModelProperty(name="consultation", value="就诊史")
    private String consultation;

    @ApiModelProperty(name="consultationDate", value="就诊时间")
    private Date consultationDate;

    @ApiModelProperty(name="diagnosisDetails", value="诊断详情")
    private String diagnosisDetails;

    @ApiModelProperty(name="familyMedical", value="家族病史")
    private String familyMedical;

    @ApiModelProperty(name="patientRelation", value="患病亲属")
    private String patientRelation;

    @ApiModelProperty(name="familyIllnessDetails", value="家族病详情")
    private String familyIllnessDetails;
}
